package com.xiangge.qicaixianhua;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/18 16:17
 * @description 鲜花实体类
 */
public class Flower {
    private String id;
    private String name;
    private int shuliang;
    private double price ;
    private String date ;
    private String xiaoshou ;
    private String beizhu ;

    public Flower() {
    }

    public Flower(String id, String name, int shuliang, double price, String date, String xiaoshou, String beizhu) {
        this.id = id;
        this.name = name;
        this.shuliang = shuliang;
        this.price = price;
        this.date = date;
        this.xiaoshou = xiaoshou;
        this.beizhu = beizhu;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getShuliang() {
        return shuliang;
    }

    public void setShuliang(int shuliang) {
        this.shuliang = shuliang;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getXiaoshou() {
        return xiaoshou;
    }

    public void setXiaoshou(String xiaoshou) {
        this.xiaoshou = xiaoshou;
    }

    public String getBeizhu() {
        return beizhu;
    }

    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu;
    }

    public void getInfo(){
        System.out.println(id+"\t"+name+"\t\t"+
                shuliang+"\t\t"+price+"\t\t"+
                date+"\t\t"+xiaoshou+"\t\t"+
                beizhu);
    }


    @Override
    public String toString() {
        return "Flower{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", shuliang=" + shuliang +
                ", price=" + price +
                ", date='" + date + '\'' +
                ", xiaoshou='" + xiaoshou + '\'' +
                ", beizhu='" + beizhu + '\'' +
                '}';
    }
}
